package com.yonja.zbox.modules.system.feign;

import com.yonja.zbox.common.annotation.SysLog;
import com.yonja.zbox.common.constant.SecurityConstant;
import com.yonja.zbox.common.vo.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author yonja
 * @date 2019/2/1
 */
public interface RemoteLogService {
	/**
	 * 保存日志
	 *
	 * @param sysLog 日志实体
	 * @param from   内部调用标志
	 * @return succes、false
	 */
	@PostMapping("/log")
	R<Boolean> saveLog(@RequestBody SysLog sysLog, @RequestHeader(SecurityConstant.FROM) String from);
}
